<template>
  <div>
    <p v-for="message in messages">{{ message }}</p>
  </div>
</template>

<script>
// import VueSSE from '../../../node_modules/vue-sse';

export default {
  name: 'SSEComponent',
  components: {
    // VueSSE
  },
  data() {
    return {
      messages: []
    };
  },
  mounted() {
    // const sse = new EventSource('/sse');
    // sse.onmessage = this.handleSSEMessage;
  },
  methods: {
    handleSSEMessage(event) {
      // this.messages.push(event.data);
    }
  }
}
</script>
